package com.iotmonitor.iot.service.impl;

import java.util.List;

import com.iotmonitor.common.security.utils.SecurityUtils;
import com.iotmonitor.iot.service.ITbBoardService;
import com.iotmonitor.iot.domain.TbBoard;
import com.iotmonitor.iot.mapper.TbBoardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 面板配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-11
 */
@Service
public class TbBoardServiceImpl implements ITbBoardService
{
    @Autowired
    private TbBoardMapper tbBoardMapper;

    /**
     * 查询面板配置
     * 
     * @param id 面板配置主键
     * @return 面板配置
     */
    @Override
    public TbBoard selectTbBoardById(Long id)
    {
        return tbBoardMapper.selectTbBoardById(id);
    }

    /**
     * 查询面板配置列表
     * 
     * @param tbBoard 面板配置
     * @return 面板配置
     */
    @Override
    public List<TbBoard> selectTbBoardList(TbBoard tbBoard)
    {
        return tbBoardMapper.selectTbBoardList(tbBoard);
    }

    /**
     * 新增面板配置
     * 
     * @param tbBoard 面板配置
     * @return 结果
     */
    @Override
    public int insertTbBoard(TbBoard tbBoard)
    {
        return tbBoardMapper.insertTbBoard(tbBoard);
    }

    /**
     * 修改面板配置
     * 
     * @param tbBoard 面板配置
     * @return 结果
     */
    @Override
    public int updateTbBoard(TbBoard tbBoard)
    {
        return tbBoardMapper.updateTbBoard(tbBoard);
    }

    /**
     * 批量删除面板配置
     * 
     * @param ids 需要删除的面板配置主键
     * @return 结果
     */
    @Override
    public int deleteTbBoardByIds(Long[] ids)
    {
        return tbBoardMapper.deleteTbBoardByIds(ids);
    }

    /**
     * 删除面板配置信息
     * 
     * @param id 面板配置主键
     * @return 结果
     */
    @Override
    public int deleteTbBoardById(Long id)
    {
        return tbBoardMapper.deleteTbBoardById(id);
    }
}
